package com.pig.pcart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig.pojo.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface CartMapper extends BaseMapper<Cart> {

    @Select("SELECT  cartId,itemId,itemTitle,created,num,itemPrice,userId,updated,itemImage  FROM  p_cart  WHERE userId = 77")
    List<Cart> selectItemsByUserId(Integer userId);

}
